import request from '@/utils/request'

// 查询结算组织列表
export function listOrgunit(query) {
  return request({
    url: '/settlementCenter/basedata/orgunit/list',
    method: 'get',
    params: query
  })
}

// 查询结算组织详细
export function getOrgunit(id) {
  return request({
    url: '/settlementCenter/basedata/orgunit/' + id,
    method: 'get'
  })
}

// 新增结算组织
export function addOrgunit(data) {
  return request({
    url: '/settlementCenter/basedata/orgunit',
    method: 'post',
    data: data
  })
}

// 修改结算组织
export function updateOrgunit(data) {
  return request({
    url: '/settlementCenter/basedata/orgunit',
    method: 'put',
    data: data
  })
}

// 删除结算组织
export function delOrgunit(id) {
  return request({
    url: '/settlementCenter/basedata/orgunit/' + id,
    method: 'delete'
  })
}
